Microstation AutoZ

Please assist with the functionality of AutoZ. From the top my drawing looks fine but in the front view the supposed flat lines are at different heights. I have tried the AutoZ function, but don't seem to get it right.