fixed few bugs in some function inheritance