Fixed bug in security mapping