fix back button path detection