Fixed open() calls