fixed bug that caused the backend script to fail