Prevent update error when current file is empty