Fixed #3058.