Fix some issues with open.