fix bug in expense and portion model