fixed missing define variable