Fix small bug in contacts sample