fixed resume camera bug