small fix
raytrace optimize + checkTile