Fix associative array length