Fix the bug with ship placement.