Error in the fps

hello I have a problem once I had used the 30fbs trick in mario party star rush to make it run better but then I removed it and now the bad thing is that when I play games that ran well they stay at 30fps before they ran at 40fps and I deleted the hack and it still stays at 30fps

I’m afraid you misremembered. Mainstream pokemon games have always ran at 30fps. Even the Switch ones still do (except Briliant diamond and Shining Pearl as they were made by a different studio using the Unity engine).
Most 3DS games are locked at 30fps. Only a few have a higher standard framerate.