Fixed warnings in Entities.