fixed button indexes

Make alert work