Fixed an error with extensions.

Signed-off-by: Carl Rapp <Carl.Sebastian.Rapp@gmail.com>