Deleted locals, fixed error