fix f.inputs with class

this is a fix for #3560

@varyonic can you review this