Fixing bugs: Coordinates out of range