Fix issue with fillmode