Corrected small bugs.