Debug redirect issue