The common assumption that all Anemonefish start out as males is funamentally incorrect.
They rather start out as non-functional females, then, when rising to the number 2 position in the hierarchy, become functional males, and finally, if making it all the way to the top, become functional...