Fixed monkey patch error