fix for MOSYNC-3197

http://jira.mosync.com/browse/MOSYNC-3197