fix sigin flow