Fix bug989461 internal error