Fix getAnimation method