fixed /:0 to return first element instead of throwing an error