API open() issue