Fixed a bug in the filling code.