minor fixes

minor bugs fixed.