fixed asAt bug