fixed issue with opt box parser using wrong counter