Fixing dialogue visibility