fixed errors due to content tyoe