force parseInt to use base 10, fix #4