Fixed up entry code to dpt and ctl to stop crash on double call