fixing PIE issues