A study on correlations between architectural smells and design patterns