viewpager-bug-fix-update

I'm sending again pull request this time i haven't copy pasted entire code .If you get any issue please let me know.