Actually fixed open() function.