Fixing domain using black magic