fixed camera initalization issues