Library: Fixed bug I caused when I cleaned up patch