Fixed getType methd