fix to ruby object bug