fixed patch application and locatin