Fixed int parsing for server+client sides validation