fix patch loading prior