fixed variable 'buffer' is void

A varibale 'buffer' is void at call fill-types, so assign current-buffer.