Fixed missing replacement of patterns in attributes