fix in bug model and modify spec