Locking a UI does not work sometimes when using JXLayer.