Fix plan entity