fixed undefined vars in entity controllers