Nothing wrong with the fix. I would like to see more context why this solution fix this issue in general. Can be added as a description to this diff. This way when can track source code back to the issue and the reason why it is added. Already useful from a few months from now.