finally fixed front end error