Fix crash when pushing button on top or bottom map borders (fixes: #64)