bugfix: slice on a null object