Removed unnecessary code in the load function.