fix bug in the withVisRaw handler