bugfix: scalar comparison