fix segfault due to pulse input race condition