fix cookie loader