fixed possible infinite loop when placing vegetation