fixed frontend errors