Fixes #635 issue with transition hide sometimes being overwritten by other styles