Perhaps there is a size limit or perhaps there was another reason that the end of your notebook appears to have been cut off and not shown. If you could edit your post to have all the code then it would be more likely that someone could suggest how to get it to work.