Fix ghost cycles problem.
Merge pull request #15 from aplanas/master

Fix ghost cycles problem.