fixed unsupported cast