Removed prints and attempted to fix bug

Bug is still present, and reproducible in old projects.