fixed ruby line throwing error