fixed some bugs in projects maneger