fixed some problems before build