fix for Maxs compiler