minor change to orientation plugin