fixed the Load method, which didn't handle the mask properly