fix some style issues with entity.c