fixed nested read issue

Not sure if you want to implement the fix this way but the test passes and it gets me past the issue in my project now!