Fixed the errors