fixed bugs with font security and missing icon resource