fix for issue that reproduced on MAC