fix runtime error & travis