derivative attribute bug