fixed stupid typo in layer height calculation