fixed when data is constant
Merge pull request #1 from jtjeferreira/master

fixed when data is constant