Fixed real open() bugs.