Fixes element list synchronization issue, adds checks to native functions