Fixed action factory where the class doesn't exist

Signed-off-by: Tom Wright <tom@inflatablecookie.com>