fixed issue with persistance od the selected states for gates