fix error on invalid project