Bugfix uninitialised occ_cost variable usage

This fixes #256.