WeaknessesController warnings fix #43