fix to setCSP method