fixed button range checks