bugfix in mode6

fixes #93