fix basic errors