bug fixes in model