Fixed jumping slider position

string->int conversion bug

Fixes #12