fix undefined length
meh
compiled