methodOverride and fix for directory