fixed bug with clearing a assigned domain memory bytearray