Fixed some missing variables.