Fixed loading bug
Handle loading when there are no action definitions