Little fix to prevent errors while producing colors.