Reset entity attributes method
Variable bug fix