empty ruby error fixed