Fix ruby error on Ubuntu 14.04