Fixed write to lcd for correct display of int values.