fixed array element issue in gcm devices controller