fix bug in sim camera