fixes bugs.