corrected addition issue

add parseInt to correct addition issue