bugfix: wrong return value