Fix add rule and add variable to the bottom
min file