fixed wrong parseint conversion