fixed bug in comp data prop