Update converter.cpp

Fixed zero problem