Fixed the start position when compaction occurred. Still not working fully.
Working on compact