Fix bug, check VF is active before destroy