fix bugs in jsp