fix overlay scaling