Fixed errors to run correctly