Fixed onloaddeck error.