fixed a bug in handleGlue.jsx