fixed pushfile loop