Fixed Ruby error