Correcting some errors