Fixed a nullpointer and removed unnecessary debugging.