Fix crash with spark flood fill