fix monkey patch