Fixes #565, this fixes an issue where we try to use keys on a list object