Use ~ instead of ^ for 0.8 compatibility