fixed missing re import bug