fix for percentage based elements