Fixed bug on backend