Fixing a bug in radio buttons