Fix bug causing extensions to not work