When setting allowed directions, it keeps the old directions from last setting.
When setting allowed directions, it keeps the old directions from last setting.