fixing backend errors