Fixed bug in natives

Natives was always use `session` length.