smart direction fixes