some fixes

Event fixed
gain level fixed

Sorry for all the previous useless commit :(