little bugfixes in the signal creation hook