removed annoying debug message and fixed the bug