Fixed a stupid Error

It was checking the wrong array.