Fix allocateFrontend problem