bugfix for empty body