fix an issue with disable/enable controls