Trying to fix the errors