Fixed incorrect AND where naming says foldl but instead foldr is used.