Bug with if and color in array check. Fixes #1300