fix references length
fix references lenght