afm-binding: Fix bug in evaluation of runid