fix small bugs
fix a backend bug