Fix cancel button when clicked before cameraInitialized event