fixed event duration not calculated correctly during dynamic map generation