Fixed bug with empty PATCH array