fix smart memory