Fixed bug parsing primitive types