fixing bug of selecting a proper wave after post new photo