Fixes loitering issue.