Apply changes from pull resquest => https://github.com/owncloud/calendar/pull/376