Fixes #369 LIMIT clause in session updates

#369 1.6