fix type error and install compass for travis