Have you checked to see if the produced G-Code has the correct Z depth?