Update problem

My Nokia 5 doesn't update. Even after connecting to wifi, it says 'waiting for wifi' while downloading update.