Fixed optional global argument for load function