Bug fixed and debugging output deleted