fix return for global_check