Fixes bug with aligning the magic