Still some minor error for detecting list