Fixed a bunch of transitional bugs and remvoed a debug method