Removed a debugging "print" and fixed a bug appeared with the last commit.