Fix for translation matrix creation