Fixes bad wall generation.