Fixed some bugs in the frontend