Fixed error from last commit and removed missed debug line