Fixed v4 range checks

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