fixed bug with move constructor