Fixes ajax header realted issues