Fixed a problem with the position in list macro