Fixed color only prefix and some nullpointer

I have no idea how the nullpointer could happen, but it did