Removing debug message and fixing issue #48