fix ruby inconsistency