fix random recipe saving bug