Fixed incorrect call to io.open