fix potentially problem when need require other packages