fixed bug in knockout model