Fixing typedef