modifing bugs in backend
fixed backend