Made workaround to handle Rubinius bug.