Quick fix for length predicate