fix variable declare bug