Workaround for navbar bug on orientation change