Updaded a few bugs pertaining to pol. gains.