Fix error when going next