Fix button relabeling bug