Fixed bug in determining if patch was created