Fix start up error in wrong cast

Change-Id: If59f06ae87d5ee8e9b16d150a34962fdb0375bb1