Help please:

Adding a Subscription using the script below results in error - Cannot insert the value NULL into column 'nosync_type', table 'HFHS_2512_PROD.dbo.syssubscriptions'; column does not allow nulls. INSERT fails.
The Distributor & Publisher are in the same server (SQL 2008 SP1)
The Subscription server is also SQL 2008 SP1

(we use CMD mode - the parameters are getting throw OK)

----Add subscription
begin try
exec sp_addsubscription
@publication = N'$(PUBLICATION)',
@subscriber = N'$(SUBSCRIBER)',
@destination_db = N'$(SUBSCRIBERDATABASE)',
@subscription_type = N'Push',
@sync_type = N'automatic',
@article = N'all',
@update_mode = N'read only',
@subscriber_type = 0

end try
begin catch
print error_message()
end catch