fixed bug in rendered