$customMessages is not static