finally fixed this crash -.-