Fix monkey patch