fixed error with sw