Issue289

This pull request solves the issue #289.