fixed a bug in detecting deleted units
Merge branch 'master' of https://github.com/cosmc/NJCTLCourseApp