fix setProject function