fix a bug when converting patches into bi-cubic patches