Fix android preview freeze bug