fixed null pointer exception in action reg