fix map length