Fix inspector not being triggered sometimes.