Fix bug in load camera