Fixed bug with casting concatenation