correct terrain rectangle