fix ruby code block