fixed strange behavior