Added bugfix for ChimpDiscrete to the develop branch