fixing EntityProvider not returning the right stuff on module entity