fixed bug with camera