Fixed the scaling done in lookup