fixed casting in celli, cellj