Fixed errors created by my list code