Fix ip storing