Fixed bug with empty Hat.