fixed Button state changing after click/press

This fixes #1100