Fix bug in j()