fix the rebuild var