Fixing overflow issue on windows phone