This fix also needs to be applied to newreply.php line 247.