fix slow build