I have created a nesting G-code program for a machined part which works fine except...

At the end of each tool, the G-code sends the tool to Z0 which is at the bottom of the part, which crashes my tool into my part.

This doesn't happen for the single part, it only happens for the nest.

Any ideas?