error in getLangDirection solved #1