Fix coverity 53839 and  53840