fix longtime bug