fixed bug with sending signals