Fixed NotImplemented exception when flag is set to 1