bugfix

found a bug, fix it.