Fixed bug, was checking for the wrong extension name.