fix for writer