Fix notification layout when using a custom type