fix patch error
remove temp files