fixed function not called