types was getting empty string and causing initial query to fail