Fixed a transposition, added debug lines