fix a few transitions for WebKit