Fixed un-opened Log check
Compil fix