Fixed clicking button when empty