Bug fix: wrong comparison