Fixed select for update.