fixed issue with nil body