Fix state on boot for memory mapping