Fixed bug with moderate security setting