bugfix: wrong config check