minor bugfixes

Signed-off-by: Christian Lüthold <biocodr@gmail.com>