minor bugs fixed

minor bugs fixed