[Maria-developers] [Branch ~maria-captains/maria/5.1] Rev 2770: Fixes after comments from last push: