fix ruby compiler issue