IDs problem in redirect