Fixed a bug with input between cells.

I have fixed an issue #23 "Can input between cells". Could you plz merge it into master?