fixed LocalStorage getfunctions