Fix bug preventing button position change