Bug fix

Calculate penalty after building random solution