Corrected errors in backend