Fixed all the known unknown bugs.