bugfix for wlog