Fixed bug in getIdentifier