remove seemingly useless write (bug #4299)