Strange redirection and project behaviour