Fix coverity warns