fixing load promise