Fixed bug where colours could go negative