Fixed some frontend errors