fix some rel file bugs
fix rel file size bug on file creation
fix REL file open error