Writing fixture doesn't work properly