fixed ruby error