fixing camera bug