Fixed bug in format_entity