Fix getType Function

Change getType to getUserType