Bug fix for optimistic ruby returns.