fix Abstract class pattern