fixed some things regarding terrain