Fixed check if patch already executed