fixed some template issues with regards to not specialized ones