fix assertions