fix neighbor flag rotation in Firefox