Problem with custom classes solved itself (magic).