Prevent resize if metadata hasn't changed

Fixes issue #77.