bugfix

minor bugs fixed