bug in target cell creation