Fixed error with list construction