HTML5: Fix minor bugs
Unity: Improve AttachLWF