update orchid library with custom code fix