write devices fix