modify hamlet bug