Fix for debug mode deleting URL query.