fix for empty contents