fixed button select from array problem