diff --git a/lua/codecraft/core/neovide.lua b/lua/codecraft/core/neovide.lua
index f925d1de4611ed8f083c9b607ca3683474b199e8..25a0c427776fb6cce683f84afb1ca7d5222c6675 100644
--- a/lua/codecraft/core/neovide.lua
+++ b/lua/codecraft/core/neovide.lua
@@ -5,7 +5,7 @@ if vim.g.neovide then
 
 	-- Helper function for transparency formatting
 	local alpha = function()
-		return string.format("%x", math.floor(255 * vim.g.transparency or 0.899))
+		return string.format("%x", math.floor((255 * vim.g.transparency) or 0.899))
 	end
 	-- g:neovide_transparency should be 0 if you want to unify transparency of content and title bar.
 	vim.g.neovide_transparency = 0.6