Try to fix restriction and snap with resize