Had reset and nmi in the wrong order