fixed issue when camera was not initialized, need to wait 1 second