adding fail safe for next prev
removing .net sanity. fixed #1.