fixed some errors for travis test