fixed resizing bug for player