fixed a bug with layer z-coordinate offset in DC