Corrected the value of zpos for xhit_coord and yhit_coord.