fix undefined variable format