Fix registering class transition style