Fix access to default inside template