fixed preferences glitch on android