fix patch ignoring arguments