fix curry state loss