bug fixed frontend