Fixed issue when we have a -1 on the match array