fixed lock election issues