fixed int parsing -- fixes #2