Fix bug in entities constructors