Fixed warnings

Fixed some small warnings in entities.