fixed a bug which caused SIGSEGV