patched a small problems