Hack to handle interrupt properly.