fixed perspective camera bug