possible fix for nullpointer in colour packet