fix backend bug