Fix unchecked errors on get_rel_size