fix warning in restrict mode