Fixed variant load code