Fix a* invocation error resulting in null pointer exception