backend bug fixes