onNewBlock fix