Fix the bug of RestEditor