nextItemMEI updates

This update contains some bug fixes to the MEI functions.