fix typo bug in phx class for ditto