Corrected bugs in KraftwerkModel