Fix some errors during debugs