Quick fix as to prevent nullpointers and weird errors.