fixed bugs in jsp