added parseInt() to make variable read as integers

Read through the discussion board and saw someone had same error as me
and this fixed it for me