Fix crash when using fill.