added a fix for dialogue stuff