Fixed bug leading to exception after right click and trying to build after map scroll