Fixed generic view generation

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