Fixed deprecated syntax