Fixed deprecated conversion