fix to the item listener, fixes #177 and potentially fixes #203