Fixed leaves ui issue and deny issue