fix depricated import bug