Fix Issue 40 of traits

This patch fixes issue 40 of traits