stupid null terminatio bug (==instead of =)