global methods bug fixed