Fixed a compile error caused by refactoring of frontend files