dispatch: fix assertions