fix bug in shared preferences, check constants WS