not sure about this, but seems to fix some edge cases