Lock controller fix