fix type mismatch
binary upgrade