Fixed problem with patch