fixed bug which is caused by cancel button on camera