Fixed dismiss on shake