Removing useless patches