Added attribute clone and fixed goal attribute.