write action assertion fix