Fixing layout snapping issues.