Fixed resize function in HUDController