remove path extension and fix posterType issue