Fixing strict standards

This will fixing strict standards warning on `end()` function. Should be passed by variable.