fix for older magentos