fix camera bug