Length of sf.weight was wrong. Could lead to segfaults