fix if check
fix if check


Former-commit-id: 3090fdf2235b602d2f919e73c4ef640bc16aa7ec
syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin