Fix for terrain config

Fix 2 bugs in 9.13 and 10.13