fix from @manuelcabral