Major bug fix preventing panels from being unlocked