Fixed bug in get_esp()