fix some camera bugs