fixed supportLocalStorage method