fixed undefined camera