fixing ws model