Fix to getCollection:(NSString*)type and collection sample app