fixing random dynamic string issue