fixed activation of singnal handler