Fixes stathat bug