fixed data() implementation in the entry model