The real reason for the problem is still unknown, but this solution adds less overhead than rBdafaa6f22881.