registering fix according to new api

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