Fixed bug with double extensions