Fix return type of Connection::project