-Fix ruby begin and for issue