fix npe from monkey