Fixed resetting of method_location