Fixed bug with previous patterns configuration.