Minor bugs fixed when reads script properties