fixed some of the bugs in single core mcposition code