[Mini] Fix that category replacement is not correct

It's missing a bit shift operation.