fix bug with entity state