Fix bugs in Bill model/view