fix optimize for mobile