Fix Strict Standards: error

Strict Standards: Only variables should be passed by reference was
reported in the two places where it has now been fixed. end() does
not like having a variable reference passed to it.