crappy fix to order nil issue