possible bug fix for crash without X