Solved size detection issue