fixed problem with signals initialization