Fixed errors in my functions