Fixes map scrolling issue.

Fixes #567.