Thanks for your time and reply! Today, I cannot reproduce the error and it must be the case that I had another piece of code complicating things. Before making this thread, I also tested on a different computer and found the same error, but with the same likely flawed code.