Fix wrong assignment rows counter; del existing tmp files