Bugfix

Fixed the profile stopping because of a "comparing number with string"
error.