Fix camera dismiss bug