Fixed debug backtrace for global functions call