Reset attributes when needed