Fix the delete_signal api function