added bug fix
Merge pull request #146 from red-admirals-2014/newbugfix

added bug fix