fixed ruby ref