Fixed an error in return value, removed debug commited by accident