Fixed missing variable when coming from user import