Fixed eastOf function.