fixed extractLabel bug