fix the compatibility