weird error with entity fixed