card writer fix