Fix openProject function call