fixed some issues to make live editor work in firefox