fix the bug in try_static, and a bug in project model