Corrected bugs.