fixed Rules button not working